<?php $this->load->view('admin/adhead.html'); ?>

<?php $this->load->view('admin/adsider.html'); ?>

  <!-- Content Wrapper. Contains page content -->
  <div class="content-wrapper">

    <!-- Main content -->
    <section class="content">
		<div class="row">
        <div class="col-xs-12">
          <div class="box box-primary">
            <div class="box-header">

              <h3 class="box-title">用户列表</h3>

              <div class="box-tools">
                <div class="input-group input-group-sm" style="width: 150px;">
                  <input type="text" name="table_search" class="form-control pull-right" placeholder="Search">

                  <div class="input-group-btn">
                    <button type="submit" class="btn btn-default"><i class="fa fa-search"></i></button>
                  </div>
                </div>
              </div>
            </div>
            <!-- /.box-header -->
            <div class="box-body table-responsive no-padding">
              <table class="table table-hover">
                <tbody><tr>
					<th>序号</th>
                  <th>账号</th>
                  <th>名称</th>
                  <th>级别</th>
                  <th>状态</th>
                  <th>邮箱</th>
				  <th>注册日期</th>
				  <th>最后登录时间</th>
				  <th>操作</th>
                </tr>
				<?php  $id=1; ?>
                <?php foreach($manager as $item):  ?>
	<tr>
		<td><?php echo $id;$id++;?></td>
		<td><?=$item->passid?></td>
		<td><?=$item->name?></td>
		<td><?php if($item->level==1){echo "管理员";}elseif($item->level==2){echo "编辑";}else{echo "未知";}?></td>
		<td><?php echo $item->status?"正常":"停用";?></td>
		<td><?=$item->email?></td>
		<td><?php echo substr($item->regdate,0,10);?></td>
		<td><?php echo $item->lastlogintime?"$item->lastlogintime":"无记录";?></td>
		<td><a href="<?php echo site_url('admin/profile/').$item->id;?>" class="ta_inf">查看</a><a href="<?php echo site_url('admin/edith/').$item->id;?>" class="ta_inf">编辑</a><a href="<?php echo site_url('admin/delth/').$item->id;?>" class="ta_inf">删除</a><a href="<?php echo site_url('admin/status/').$item->id;?>" class="ta_inf">停用/启用</a></td>
	</tr>
	<?php endforeach; ?>
     
              </tbody></table>
            </div>
            <!-- /.box-body -->

			<div class="box-footer clearfix">
				<ul class="pagination pagination-sm no-margin pull-left">
					共有  <?php echo $nums;  ?> 条记录
				</ul>
              <ul class="pagination pagination-sm no-margin pull-right">
				<!--
                <li><a href="#">«</a></li>
                <li><a href="#">1</a></li>
                <li><a href="#">2</a></li>
                <li><a href="#">3</a></li>
                <li><a href="#">»</a></li>
				-->
              </ul>
            </div>

<style type="text/css">
<!--
.ta_inf { margin-right:8px}
.ta_inf:hover {text-decoration:underline;}
-->
</style>

          </div>
          <!-- /.box -->
        </div>
      </div>


    </section>
    <!-- /.content -->
  </div>
  <!-- /.content-wrapper -->

<?php $this->load->view('admin/adfooter.html'); ?>